import { PanelPluginComponents } from 'types/plugin'
import PanelEditor from './Editor'
import TracePanelWrapper from './Trace'
import { mockTraceDataForTestDataDs } from './mocks/mockData'
import icon from './icon.svg'
import { PanelTypeTrace } from './types'

const panelComponents: PanelPluginComponents = {
  panel: TracePanelWrapper,
  editor: PanelEditor,
  mockDataForTestDataDs: mockTraceDataForTestDataDs,
  settings: {
    type: PanelTypeTrace,
    icon,
    initOptions: {
      defaultService: '${service}',
      enableEditService: false,
      defaultOperation: '${operation}',
      enableEditOperation: false,
    },
  },
}

export default panelComponents
